package com.lancer.cloud.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * oauth2客户端资源认证表
 *
 * @author caijinbang
 * @date 2019-06-17
 */
@Data
@Accessors(chain = true)
public class SysOauthClientDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 客户端id
     */
    @TableId(value = "client_id", type = IdType.INPUT)
    private String clientId;

    /**
     * 资源id
     */
    private String resourcesIds;

    /**
     * 客户端秘钥
     */
    private String clientSecret;

    /**
     * 实例
     */
    private String scope;

    /**
     * 授权认证类型
     */
    private String authorizedGrantTypes;

    /**
     * 重定向uri
     */
    private String webServerRedirectUri;

    /**
     * 权限
     */
    private String authorities;

    /**
     * 是否有效的token
     */
    private Integer accessTokenValidity;

    /**
     * 是否刷新有效的token
     */
    private Integer refreshTokenValidity;

    /**
     * 条件信息
     */
    private String additionInformation;

    @TableField(value = "autoapprove")
    private String autoapprove;
}
